
import { RouteObject, Navigate } from 'react-router-dom';
import HomeList from '../pages/HomeList'
import Layout from '../Layout';
import My from '../pages/My'
import Frient from '../pages/Frient';
import LunBo from '../pages/LunBo'
import DayKp from '../pages/DayKp'
import DoctorDetails from '../pages/DoctorDetails';
import DoctorZuoPin from '../pages/DoctorZuoPin';
import Foster from '../pages/hby/Foster'
import Beauty from '../pages/hby/Beauty'
import Shoping from '../pages/hby/Shopping'
import PetMedical from '../pages/PetMedical';
import BaiKe from '../pages/BaiKe'
import Fuwudingdan from '../pages/PetOrders'
import Update from '../pages/Update'
import Shezhi from '../pages/Shezhi'
import Changjian from '../pages/Changjian'
import Message from '../pages/Message'
import Guanyu from '../pages/Guanyu'
import Yinsi from '../pages/Yinsi'
import Xieyi from '../pages/Xieyi'
import Chongwu from '../pages/Chongwu'
import Chongupd from '../pages/Chongupd'

// 路由配置
export const routes: RouteObject[] = [
    {
        path: '/layout',
        element: <Layout />,
        children: [
            {
                path: '/',
                element: <Navigate to="/layout/homeList" />
            },
            {
                path: 'homeList',
                element: <HomeList />,
            },
            {
                path: 'my',
                element: <My />,
            },
            {
                path: 'frient',
                element: <Frient />,
            }, {
                path: 'foster',
                element: <Foster />,
            }, {
                path: 'beauty',
                element: <Beauty />,
            }, {
                path: 'shoping',
                element: <Shoping />,
            }
        ]
    },
    {
        path: '/',
        element: <Navigate to="/layout" />
    },
    {
        path: '/lunbo',
        element: <LunBo />
    },
    {
        path: '/daykp',
        element: <DayKp />
    },
    {
        path: '/doctorDetails',
        element: <DoctorDetails />
    },
    {
        path: '/doctorZuoPin',
        element: <DoctorZuoPin />
    },
    {
        path: '/petMedical',
        element: <PetMedical />
    },
    {
        path: '/baike',
        element: <BaiKe />
    },
    {
        path: "/update",
        element: <Update />
    },
    {
        path: "/shezhi",
        element: <Shezhi />
    },
    {
        path: "/changjian",
        element: <Changjian />
    },
    {
        path: "/message",
        element: <Message />
    },
    {
        path: "/guanyu",
        element: <Guanyu />
    },
    {
        path: "/yinsi",
        element: <Yinsi />
    },
    {
        path: "/xieyi",
        element: <Xieyi />
    },
    {
        path: "/chongwu",
        element: <Chongwu />
    },
    {
        path: "/chongupd",
        element: <Chongupd />
    }
];
